import {createApp} from 'vue'
import {createPinia} from 'pinia'
import {CellGroup, Field, Lazyload, Search, Swipe, SwipeItem,Button,Form,Toast,Icon,Uploader,ActionSheet,Checkbox} from 'vant';
import App from './App.vue'
import router from './router'
import '@/assets/style/reset.css'//初始化样式
import 'lib-flexible/flexible.js'//修改根字体大小
import 'vant/lib/index.css';




const app = createApp(App)
const pinia = createPinia()
app.use(pinia)

// @ts-ignore
app.use(router)
app.use(Search)
    .use(Field)
    .use(CellGroup)
    .use(Swipe)
    .use(SwipeItem)
    .use(Lazyload)
     .use(Button)
    .use(Form)
    .use(Toast)
    .use(Icon)
    .use(Uploader)
    .use(ActionSheet)
    .use(Checkbox)


app.mount('#app')
